{% extends "news/base.html" %}

{% block title_block %}
    <title>用户概况</title>
{% endblock %}


{% block script_block %}
    <link rel="stylesheet" type="text/css" href="../../static/news/css/jquery.pagination.css">
    <script type="text/javascript" src="../../static/news/js/jquery.pagination.min.js"></script>
    <script type="text/javascript" src="../../static/news/js/user_follow.js"></script>
    <script type="text/javascript" src="../../static/news/js/page_control.js"></script>

{% endblock %}


{% block content_block %}
    <div class="user_menu_con fl">
        <div class="user_center_pic">
            <img src="../../static/news/images/user_pic.png" alt="用户图片">
        </div>
        <div class="user_center_name">{{ author.nik_name }}</div>

        <ul class="other_detail">
            <li>性 别：{{ author.gender }}</li>
            <li>签 名：{{ author.signature }}</li>
        </ul>

        <div class="focus_other">
            <a href="javascript:;" class="focus block-center" data-userid="{{ author.id }}"
               style="display: {% if is_followed %}none
               {% else %}block
               {% endif %}">关注</a><br>
            <a href="javascript:;" class="focused block-center" data-userid="{{ author.id }}"
               style="display: {% if is_followed %}block
               {% else %}none
               {% endif %}"><span class="out">已关注</span><span class="over">取消关注</span></a></div>

    </div>

    <div class="user_con fr">
        <div class="other_collect">
            <h3>{% if author.gender == "MAN" %}他{% else %}她{% endif %}的文章</h3>
            <ul class="article_list">

                {#                {% for news in author.news_list %}#}
                {#                    <li><a href="#">{{ news.title }}</a><span>{{ news.create_time }}</span></li>#}
                {#                {% endfor %}#}

            </ul>

            <div id="pagination" class="page" cur_page="1" total_page="1"
                 source="/user/other"></div>
        </div>

    </div>
{% endblock %}


{% block rankBlock %}

{% endblock %}